package cn.com.hfuu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.hfuu.module.userrole;

public interface userroleMapper {
    int deleteByPrimaryKey(String userRoleId);

    int insert(userrole record);

    int insertSelective(userrole record);

    userrole selectByPrimaryKey(String userRoleId);

    int updateByPrimaryKeySelective(userrole record);

    int updateByPrimaryKey(userrole record);
    
    
    /**
     * 根据用户查权限
     * @param userid
     * @return
     */
    List<userrole> selectbyuserid(String userid);

	void delete(@Param("roleid")String roleId,@Param("userid") String id);

	int deleteroleid(String[] ids);

	int deleteuserid(String[] ids);
}